package cloud.alibaba.study.entity.seckill;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import cloud.alibaba.study.entity.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_seckill_act")
public class SeckillAct implements Serializable {

	@TableId(type = IdType.AUTO)
	private Long seckillActId;
	private String seckillActName;
	private Date startTime;
	private Date endTime;
	private Integer status;
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	// 非数据库映射字段
	@TableField(exist = false)
	private List<SeckillProduct> seckillProducts;// 活动关联的秒杀商品

}
